Use the AdminDeleteLearner activity
The AdminDeleteLearner activity can be used by administrators to delete learners and their records (that is: enrolment, roles and so on) from the database. You must use caution when using this activity, as deleted learners cannot be restored.
The AdminDeleteLearner activity is located in the People section of the Tribal Toolbox.
This activity contains the following relevant properties.
| Section | This field | Holds this information... |
|---|---|---|
| Inputs | PersonCode | The learner person code of the learner to be deleted, within double quotes. |
| TestMode |
Whether the test mode is executed - input true or false. Important.You can use test mode to simulate the deletion process, without deleting learner records.
|
|
| Misc | DisplayName |
The title of the activity. Important.The DisplayName property is set to AdminDeleteLearner by default.
|
Selecting the ellipsis button adjacent to the relevant field opens the Expression Editor, where you can enter the relevant code in the Visual Basic (VB) format.